The reason Israel wasn’t ‘ready’ is because they have seen significant international pressure to leave those areas. The UN and left-wing US Presidents have consistently pressured Israel to give Hamas more and more leeway. Just look at what the Biden admin tweeted while these terrorists were murdering civilians, Biden government stooges tweeted against Israel to do any retaliatory strikes.
Even as Biden is funding the Iranians, the US and the left wing parties even in Israel’s government have been claiming for the past 20 or so years that Muslims in Palestine have on average moderated against significant military action - see for example this Princeton article https://dataspace.princeton.edu/handle/88435/dsp018p58ph03z and other left wing outlets have been saying this lie repeatedly https://carnegieendowment.org/2012/11/18/long-road-to-moderate-hamas-pub-50068
That is why there were such protests lately in Israel against the government, nobody had seen any serious actions from the terrorists for decades, yet the government wanted to keep readiness like mandatory military service, while the left wing groups in the government were saying amongst other things this was not promoting for peace and discriminatory against LGBT (you know, you might get some real men if you give young men a purpose).
Moreover, this was predicted would happen when Biden released 15B to Iran in the last few weeks. They just weren’t expecting Iran to be so quick and bold about it, because this attack will now be pushed back and hopefully Israel will finally rid the entire West Bank and Gaza Strip of terrorists and reclaim its territory. Not sure what Iran’s goals were here, they weren’t ready to take on the Israeli military, they just wanted it to be symbolic for religious reasons.
People will have to learn, groups like Muslims, like JWs and other extremist religions will never moderate, they will change their tactics, but the underlying problem remains, the drug of control too powerful for their leadership to give up.